package com.fh.shop.admin.common;

public enum ResponseEnum {
    CONFIRMPSSWORD_NEWPASSWORD_EQUAL(2003,"两次密码不一致"),
    NEWPASSWORD_OLDPASSWORD_ERROR(2002,"新密码不能和旧密码一样"),
    OLDPASSWORD_ERROR(2001,"原密码有误"),
    PASSWORD_IS_NULL(2000,"密码不能为空"),
    PASSWORD_ERROR(1002,"密码错误"),
    USERNAME_ERROR(1001,"用户名不存在"),
    USERNAME_PASSWORD_IS_NULL(1000,"用户名或密码为空");
    private int code;
    private String msg;

    private ResponseEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
